import { http } from "@/utils/http";

// 获取产量数据
export const getProductDataAPI = data => {
  return http.request("post", "/energy/consumeMeasure/listProduction", {
    data
  });
};
// 更新数据
export const updateProduction = data => {
  return http.request("post", "/energy/consumeMeasure/updateProduction", {
    data
  });
};
// 查询消耗计量总览
export const getConsumptionMeasurementSummary = data => {
  return http.request("post", "/energy/consumeMeasure/viewConsumptionMeasurementSummary", {
    data
  });
};
// 能源绩效基准线-消耗计量
export const getEnergyLineLossDirectrix = data => {
  return http.request("post", "/energy/supplyLoad/lineLossDirectrix", {
    data
  });
};
// 查询消耗计量-叶子节点
export const getViewConsumptionMeasurementLeaf = data => {
  return http.request("post", "/energy/consumeMeasure/viewConsumptionMeasurementLeaf", {
    data
  });
};
